import { getCloseWord } from "./getCloseWord";
import { ICLoseBusType } from "./interface";

/**
 * 获取到跳转到详情页的url
 * @param param0
 * @returns
 */
export const getAddClosePageUrl = ({
  busType,
  id,
  curPathname = "",
}: {
  busType: ICLoseBusType;
  id: string;
  curPathname?: string;
}) => {
  return `${curPathname}/${getCloseWord({
    busType,
  })}?id=${id}&busType=${busType}`;
};
